import { axios } from '@/utils/request'
// 品牌列表
function getBrandList (data) {
  return axios({
    url: '/vehicle-service/brand/list',
    method: 'get',
    params: data
  })
}
// 获取所有品牌
function getAllBrand (params) {
  return axios({
    url: '/vehicle-service/brand/select',
    method: 'get',
    params
  })
}
// 品牌批量删除
function batchDeleteBrand (item) {
  return axios({
    url: '/vehicle-service/brand',
    method: 'DELETE',
    data: item
  })
}
// 新建品牌
function addBrand (item) {
  return axios({
    url: '/vehicle-service/brand',
    method: 'post',
    data: item
  })
}
// 编辑品牌
function editBrand (item) {
  return axios({
    url: '/vehicle-service/brand',
    method: 'put',
    data: item
  })
}

export default {
  getBrandList, getAllBrand, addBrand, batchDeleteBrand, editBrand
}
